home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _F91B04DCAA944636B9DC1D38B24A7B19 < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.6 KB  |  153 lines

  1. NTW20 = {
  2.     name            = "NTW20",
  3.     object        = "Objects/Weapons/NTW20/NTW20_bind.cgf",
  4.     character    = "Objects/Weapons/NTW20/NTW20.cid",
  5.     
  6.     PlayerSlowDown = 1.0,                                    -- factor to slow down the player when he holds that weapon
  7.     ---------------------------------------------------
  8.     ActivateSound = Sound:Load3DSound("Sounds/Weapons/M4/m4weapact.wav"),    -- sound to play when this weapon is selected
  9.     ---------------------------------------------------
  10.     AimMode=1,
  11.     
  12.     ZoomNoSway=1,             --no sway in zoom mode
  13.     ZoomOverlayFunc=AimModeZoomHUD.DrawHUD,
  14.     ---------------------------------------------------
  15.     ZoomFixedFactor=1,
  16.     FireParams ={                                                    -- describes all supported firemodes
  17.     {
  18.         HasCrosshair=1,
  19.         AmmoType="Unlimited",
  20.         ammo=120,
  21.         min_recoil=0,
  22.         max_recoil=0,
  23.         reload_time=0.1, -- default 2.8
  24.         fire_rate=0.082,
  25.         distance=1600,
  26.         damage=20, -- default =7
  27.         damage_drop_per_meter=.004,
  28.         bullet_per_shot=1,
  29.         bullets_per_clip=300,
  30.         FModeActivationTime = 2.0,
  31.         iImpactForceMul = 50,
  32.         iImpactForceMulFinal = 140,
  33.         no_ammo=1,
  34.         
  35.         FireLoop="Sounds/Weapons/mounted/mountedlp.wav",
  36.         TrailOff="Sounds/Weapons/mounted/mountedtail.wav",
  37.         
  38.         DrySound = "Sounds/Weapons/DE/dryfire.wav",
  39.         
  40.         LightFlash = {
  41.             fRadius = 5.0,
  42.             vDiffRGBA = { r = 1.0, g = 1.0, b = 0.0, a = 1.0, },
  43.             vSpecRGBA = { r = 0.3, g = 0.3, b = 0.3, a = 1.0, },
  44.             fLifeTime = 0.75,
  45.         },
  46.     
  47.         TrailParticle = {
  48.             focus = 1.5,
  49.             color = {1,1,0.1},
  50.             speed = 0.1,
  51.             count = 1,
  52.             size = 0.005, size_speed=0.02,
  53.             gravity=0,
  54.             lifetime=0.4,
  55.             tid = System:LoadTexture("alpha_trail3.tga"),
  56.             frames=0,
  57.             color_based_blending = 0,
  58.             dir_vec_scale=100,
  59.             particle_type=4,
  60.         },
  61.         
  62.         ShellCases = {
  63.             geometry=System:LoadObject("Objects/Weapons/shells/rifleshell.cgf"),
  64.             focus = 1.5,
  65.             color = { 1, 1, 1},
  66.             speed = 0.1,
  67.             count = 1,
  68.             size = 3.0, 
  69.             size_speed = 0.0,
  70.             gravity = { x = 0.0, y = 0.0, z = -9.81 },
  71.             lifetime = 5.0,
  72.             frames = 0,
  73.             color_based_blending = 0,
  74.             particle_type = 0,
  75.         },
  76.  
  77.         -- remove this if not nedded for current weapon
  78.         MuzzleFlash = {
  79.         geometry=System:LoadObject("Objects/Weapons/muzzleflash/muzzleflashbig.cgf"),
  80.             focus = 5000,
  81.             color = { 1, 1, 1},
  82.             speed = 0.0,
  83.             count = 1,
  84.             size = 1.0, 
  85.             size_speed = 0.0,
  86.             gravity = { x = 0.0, y = 0.0, z = 0.0 },
  87.             lifetime = 0.002,
  88.             frames = 0,
  89.             color_based_blending = 3,
  90.             particle_type = bor(8,32),
  91.         },
  92.  
  93.         -- trace "moving bullet"    
  94.         -- remove this if not nedded for current weapon
  95.         Trace = {
  96.             geometry=System:LoadObject("Objects/Weapons/trail.cgf"),
  97.             focus = 5000,
  98.             color = { 1, 1, 1},
  99.             speed = 120.0,
  100.             count = 1,
  101.             size = 1.0, 
  102.             size_speed = 0.0,
  103.             gravity = { x = 0.0, y = 0.0, z = 0.0 },
  104.             lifetime = 0.04,
  105.             frames = 0,
  106.             color_based_blending = 3,
  107.             particle_type = 0,
  108.         },
  109.  
  110.         SoundMinMaxVol = { 175, 4, 100000 },
  111.     },
  112.     },
  113.  
  114.         SoundEvents={
  115.         --    animname,    frame,    soundfile        
  116.         {    "reload1",    20,            Sound:LoadSound("Sounds/Weapons/M4/M4_20.wav")},
  117.         {    "reload1",    33,            Sound:LoadSound("Sounds/Weapons/M4/M4_33.wav")},
  118.         {    "reload1",    47,            Sound:LoadSound("Sounds/Weapons/M4/M4_47.wav")},
  119.     },
  120.     GrenadeThrowFrame = 12,
  121. }
  122.  
  123. CreateBasicWeapon(NTW20);
  124.  
  125. ---------------------------------------------------------------
  126. --ANIMTABLE
  127. ------------------
  128. NTW20.anim_table={}
  129. --AUTOMATIC FIRE
  130. NTW20.anim_table[1]={
  131.     idle={
  132.         "Idle11",
  133.     },
  134.     --reload={
  135.         --"Reload1",    
  136.     --},
  137.     fire={
  138.         "Fire11",
  139.     },
  140.     --melee={
  141.         --"Fire23",
  142.     --},
  143.     --grenade={
  144.         --"Grenade11",    
  145.     --},
  146.     --swim={
  147.         --"swim",
  148.     --},
  149.     activate={
  150.         "Activate1",
  151.     },
  152.     --modeactivate={},
  153. }